package com.cg.bank.domain;

import java.sql.Date;

import org.apache.struts.action.ActionForm;

/**
 * 交易bean
 *
 * @author chunge
 * @version 1.0
 */
public class Transaction extends ActionForm {
	private static final long serialVersionUID = 1L;
	
	// 交易ID
    private int id;
    // 交易账户
    private User user;
    private Date time;
    private String type;
    private double money;
    private double balance;
    private String detail;

    public Transaction() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

	@Override
	public String toString() {
		return "Transaction [id=" + id + ", user=" + user + ", time=" + time + ", type=" + type + ", money=" + money
				+ ", balance=" + balance + ", detail=" + detail + "]";
	}

}